package com.team11.server.service.admin;

import com.team11.server.mapper.Admin_UpdateSInP_Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class Admin_UpdateSInP_Service {
    @Autowired
    private Admin_UpdateSInP_Mapper admin_updateSInP_mapper;
    public String updateSInP(HashMap<String,Object> map){
        Integer t=admin_updateSInP_mapper.UpdateSInP(map);
        if (t>0){
            return "更换分组成功";
        }
        else return "更换失败";
    }
    public String SelPleader(Integer pId){
        return admin_updateSInP_mapper.SelPleader(pId);
    }
    public void UpdatePleader(Integer pId){
        admin_updateSInP_mapper.UpdatePleader(pId);
    }
}
